//
//  FSCommonTitle.h
//  cocoapodText
//
//  Created by apple on 16/8/12.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef FSCommonTitle_h
#define FSCommonTitle_h


#endif /* FSCommonTitle_h */
#import "CommonTool.h"
#import "APIMessageManager.h"
#import <UIKit/UIKit.h>
#import "GradientView.h"

@class FSCommonTitle;
//一个协议可以扩展另一个协议，例如FSLoginViewDelegate扩展了NSObject协议
@protocol FSCommonTitleDelegate <NSObject>

@required //@required修饰的方法必须实现
-(void)onMessageClick:(FSCommonTitle *)message;
-(void)onWarnInfoClick:(FSCommonTitle *)warninfo;
-(void)onUserImageClick:(FSCommonTitle *)userimage;

@end

@interface FSCommonTitle : UIView<APIMessageManagerDelegate,UIAlertViewDelegate>

@property(nonatomic,strong)UILabel *FSTitleViewLeftLabel;
@property(nonatomic,strong)UIButton *TitleBackButtonView;
@property(nonatomic,strong)UILabel *TitleCenterLabel;
//msg
@property(nonatomic,strong)UIView *TitleMSGView;
//warn
@property(nonatomic,strong)UIView *TitleWARNView;
@property(nonatomic,strong)UIImageView *TitleWARNMarkView;
//userImage
@property(nonatomic,strong)UIView *TitleUserInfoView;
//头像
@property(nonatomic,strong)UIImageView *TitleUserInfoImageView;
//下展开
@property(nonatomic,strong)UIImageView *TitleUserInfoOpenView;


//选中图片
@property (nonatomic,strong) NSString  *titleText;
@property (nonatomic) Boolean isHaveWarnDing;
@property (nonatomic) Boolean isHaveWarnZhi;
@property (nonatomic) int warnInfoNum;


#pragma mark - 属性
#pragma mark 代理属性，同时约定作为代理的对象必须实现KCButtonDelegate协议
@property (nonatomic,retain) id<FSCommonTitleDelegate> delegate;

#pragma mark - 公共方法
#pragma mark 点击方法
-(void)messageClick;
-(void)warnInfoClick;
-(void)userImageClick;
-(void)refreshWarnInfo;

@end
